package com.provue.generator.domain;

import com.provue.common.annotation.Excel;
import com.provue.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

public class TableExcel extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 字段名称 */
    @Excel(name = "字段名称")
    private String columnName;

    /** 字段类型/长度 */
    @Excel(name = "字段类型/长度")
    private String columnType;

    /** 字段注解 */
    @Excel(name = "字段注解")
    private String columnComment;

    /** 是否主键 */
    @Excel(name = "是否主键")
    private boolean pk;

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getColumnType() {
        return columnType;
    }

    public void setColumnType(String columnType) {
        this.columnType = columnType;
    }

    public String getColumnComment() {
        return columnComment;
    }

    public void setColumnComment(String columnComment) {
        this.columnComment = columnComment;
    }

    public boolean isPk() {
        return pk;
    }

    public void setPk(boolean pk) {
        this.pk = pk;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("columnName", getColumnName())
                .append("columnType", getColumnType())
                .append("columnComment", getColumnComment())
                .append("pk", isPk())
                .toString();
    }
}
